<?php
/**
* download upload folder and sql file
*/
class MysqlUploadOutput
{
	public $file_path = "D:/sitestar_install_file/tpl_service/templates/sitestar27_data/"; 
	public function uploadOutput($tpl_name)
	{
		$filename = $this->file_path."{$tpl_name}.zip";
		if(!file_exists($filename)) return "error";
		$size = filesize($filename);
		return $size;
	}
}

$server = new SoapServer('MysqlUploadOutput.wsdl');
$server->setClass('MysqlUploadOutput');
$server->handle();
?>